import { defineFakeRoute } from "vite-plugin-fake-server/client";
// export default
    defineFakeRoute([
        {
            url: "/business/systematic/syetematic/v2/menu",
            method: "get",
            response: () => {
                return {
                    "code": 200,
                    "msg": null,
                    "result": [{
                        "systematicId": 1,
                        "systematicName": "系统名称1"
                    }, {
                        "systematicId": 2,
                        "systematicName": "系统名称2"
                    }]
                }
            }
        }, {
            url: "/business/systematic/syetematic/v2/num",
            method: "get",
            response: () => {
                return {
                    "code": 200,
                    "msg": null,
                    "result": {
                        "onLine": 78,
                        "normal": 30,
                        "fault": 32,
                        "offLine": 1,
                        "alarm": 6
                    }
                }
            }
        }, {
            url: "/business/systematic/syetematic/v2/devices",
            method: "get",
            response: () => {
                return {
                    "code": 200,
                    "msg": null,
                    "result": {
                        "total": 20,
                        "data": [{
                            "id": 1,
                            "unityName": "xxx",
                            "projectName": "xxx",
                            "deviceSN": "sada",
                            "place": "sadasd",
                            "productName": "asdasdas",
                            "commStatus": 1,
                            "actual": "dsds"
                        }]
                    }
                }
            }
        }, {
            url: "/business/systematic/syetematic/v2/project",
            method: "get",
            response: () => {
                return {
                    "code": 200,
                    "msg": null,
                    "result": {
                        "total": 20,
                        "data": [{
                            "id": 1,
                            "unityName": "xxx",
                            "projectName": "xxx",
                            "deviceCount": 33,
                            "normal": 30,
                            "fault": 32,
                            "offLine": 1,
                            "alarm": 6
                        }]
                    }
                }
            }
        }, {
            url: "/business/systematic/syetematic/v2/count",
            method: "get",
            response: () => {
                return {
                    "code": 200,
                    "msg": null,
                    "result": {
                        "deviceCount": 32,
                        "alarm": 3,
                        "fault": 32,
                        "offLine": 32,
                        "normal": 3
                    }
                }
            }
        }, {
            url: "/business/systematic/v2/alarm/statistic",
            method: "get",
            response: () => {
                return {
                    "code": 200,
                    "msg": "",
                    "result": {
                        "alarmMonth": {
                            "data": [{
                                "name": "真实",
                                "value": [0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                            }, {
                                "name": "误报",
                                "value": [0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                            }, {
                                "name": "忽略",
                                "value": [0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                            }],
                            "xAxis": ["2023-07", "2023-08", "2023-09", "2023-10", "2023-11", "2023-12", "2024-01", "2024-02", "2024-03", "2024-04", "2024-05", "2024-06"]
                        },
                        "alarmTypes": [{
                            "name": "告警",
                            "value": 11
                        }, {
                            "name": "故障",
                            "value": 22
                        }, {
                            "name": "离线",
                            "value": 33
                        }]
                    }
                }
            }
        }
    ])